mudbox::ImgPageIterator Class Reference

#include <image.h>

Inheritance diagram for mudbox::ImgPageIterator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Iterates over a specified region of an image in optimal order.

It does not lock the region of the image or otherwise cause it to be present in CPU memory -- for that, use ImgLockPageIterator... Note that the regions returned are the tiles, stripes or pages that intersect the requested region -- they may encompass a larger area than you request, or even the entire image.


Public Member Functions

  ImgPageIterator (Image *img, const ImgTile *srcTile=0, bool writing=false)
  Create an iterator to cover the specified region of the image.
virtual  ~ImgPageIterator ()
virtual bool  next ()
void *  dataPtr ()

Protected Attributes

void *  m_BlindData
Image m_Image
int  m_Type
void *  m_PixelData
ImgTile  m_SrcTile

Constructor & Destructor Documentation

mudbox::ImgPageIterator::ImgPageIterator Image img,
const ImgTile srcTile = 0,
bool  writing = false
 

Create an iterator to cover the specified region of the image.

Parameters:
img  A pointer to the image that you are iterating over
srcTile  A const pointer to the region of the image to be iterated over -- NULL means the bounds of the image
virtual mudbox::ImgPageIterator::~ImgPageIterator  )  [virtual]
 

Member Function Documentation

virtual bool mudbox::ImgPageIterator::next  )  [virtual]
 

Reimplemented in mudbox::ImgLockPageIterator.

void* mudbox::ImgPageIterator::dataPtr  )  [inline]
 

Reimplemented in mudbox::ImgLockPageIterator.

01079 { return m_PixelData; }

Member Data Documentation

void* mudbox::ImgPageIterator::m_BlindData [protected]
 
Image* mudbox::ImgPageIterator::m_Image [protected]
 
int mudbox::ImgPageIterator::m_Type [protected]
 
void* mudbox::ImgPageIterator::m_PixelData [protected]
 
ImgTile mudbox::ImgPageIterator::m_SrcTile [protected]
 

mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator
mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator mudbox::ImgPageIterator